Fix PV-on-HVM driver build.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 12 Jul 2007 15:03:41 +0000 (16:03 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 12 Jul 2007 15:03:41 +0000 (16:03 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
unmodified_drivers/linux-2.6/netfront/Kbuild

index 2bc455ecd084628fdd92afa501aba3d78c98be5d..0caab22bd6dd850ff0a417e9be795875051d0640 100644 (file)
@@ -107,4 +107,13 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...)
 #define __supported_pte_mask ((maddr_t)0)
 #endif
 
+#if defined(_LINUX_NETDEVICE_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#define netif_tx_lock_bh(dev) (spin_lock_bh(&(dev)->xmit_lock))
+#define netif_tx_unlock_bh(dev) (spin_unlock_bh(&(dev)->xmit_lock))
+#endif
+
+#if defined(__LINUX_SEQLOCK_H) && !defined(DEFINE_SEQLOCK)
+#define DEFINE_SEQLOCK(x) seqlock_t x = SEQLOCK_UNLOCKED
+#endif
+
 #endif
index 974c96433eb5f60af8aed12616b3393a8f3aa353..486c2a0a7736a62a2f1290421a6403274f2f066c 100644 (file)
@@ -2,3 +2,4 @@ include $(M)/overrides.mk
 
 obj-m  = xen-vnif.o
 xen-vnif-objs  := netfront.o
+xen-vnif-objs  += accel.o